package com.platform.mesh.bpm.biz.soa.node.pass.enums;

import com.platform.mesh.core.enums.base.BaseEnum;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @description
 * @author 蝉鸣
 */
@Schema(description = "节点通过状态枚举",enumAsRef = true)
public enum NodePassEnum implements BaseEnum<NodePassEnum, Integer> {

    /**
     * 元状态
     */
    INIT(0,0,  "元状态"),
    /**
     * 通过
     */
    PASS(1,100,  "通过"),
    /**
     * 驳回
     */
    UN_PASS(2,200,  "驳回"),
    /**
     * 无效
     */
    UN_VALID(3,300,  "无效"),
    ;


    private final Integer code;

    private final Integer value;

    private final String desc;

    NodePassEnum(Integer code, Integer value, String desc) {
        this.code = code;
        this.value = value;
        this.desc = desc;
    }

    public Integer getCode() {
        return this.code;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String getDesc() {
        return this.desc;
    }

}
